package com.lax.advertserver.controller.sys;

import com.lax.advertserver.bo.sys.UserInfoBo;
import com.lax.advertserver.constant.ADSConstant;
import com.lax.advertserver.exception.AdsException;
import com.lax.advertserver.service.sys.UserInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = ADSConstant.BASE_PATH)
public class UserInfoController {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private UserInfoService userInfoService;

    @RequestMapping(value = ADSConstant.ADD_USER_INTO, method = RequestMethod.POST)
    public UserInfoBo regUserInfo(@RequestBody UserInfoBo userInfoBo) throws AdsException {
        return userInfoService.insertUserInfo(userInfoBo);
    }
}
